projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1879de1
)
wayland: Unset the source-side DnD fd after passing it to the stream
author
Carlos Garnacho
<carlosg@gnome.org>
Wed, 9 Mar 2016 16:25:33 +0000
(17:25 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Wed, 9 Mar 2016 17:39:15 +0000
(18:39 +0100)
The ownership is given to the stream, so unset it here.
gdk/wayland/gdkselection-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkselection-wayland.c
b/gdk/wayland/gdkselection-wayland.c
index 30f35461f7537a4d9022d9ea0e4dd8512ba8f32b..1826bb2daf8247014a24462b92347adf75b732e9 100644
(file)
--- a/
gdk/wayland/gdkselection-wayland.c
+++ b/
gdk/wayland/gdkselection-wayland.c
@@
-597,6
+597,8
@@
async_write_data_new (GdkWaylandSelection *selection)
write_data->stream =
g_unix_output_stream_new (selection->stored_selection.fd, TRUE);
+ selection->stored_selection.fd = -1;
+
return write_data;
}